package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ExappointmentMapper;
import com.ruoyi.system.domain.Exappointment;
import com.ruoyi.system.service.IExappointmentService;
import com.ruoyi.common.core.text.Convert;

/**
 * 展览预约Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-18
 */
@Service
public class ExappointmentServiceImpl implements IExappointmentService 
{
    @Autowired
    private ExappointmentMapper exappointmentMapper;

    /**
     * 查询展览预约
     * 
     * @param id 展览预约主键
     * @return 展览预约
     */
    @Override
    public Exappointment selectExappointmentById(Long id)
    {
        return exappointmentMapper.selectExappointmentById(id);
    }

    /**
     * 查询展览预约列表
     * 
     * @param exappointment 展览预约
     * @return 展览预约
     */
    @Override
    public List<Exappointment> selectExappointmentList(Exappointment exappointment)
    {
        return exappointmentMapper.selectExappointmentList(exappointment);
    }

    /**
     * 新增展览预约
     * 
     * @param exappointment 展览预约
     * @return 结果
     */
    @Override
    public int insertExappointment(Exappointment exappointment)
    {
        return exappointmentMapper.insertExappointment(exappointment);
    }

    /**
     * 修改展览预约
     * 
     * @param exappointment 展览预约
     * @return 结果
     */
    @Override
    public int updateExappointment(Exappointment exappointment)
    {
        return exappointmentMapper.updateExappointment(exappointment);
    }

    /**
     * 批量删除展览预约
     * 
     * @param ids 需要删除的展览预约主键
     * @return 结果
     */
    @Override
    public int deleteExappointmentByIds(String ids)
    {
        return exappointmentMapper.deleteExappointmentByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除展览预约信息
     * 
     * @param id 展览预约主键
     * @return 结果
     */
    @Override
    public int deleteExappointmentById(Long id)
    {
        return exappointmentMapper.deleteExappointmentById(id);
    }
}
